import Vue from 'vue';
import Router from 'vue-router';
import Home from '../views/index';
import MocksStart from '../views/start';
import MocksIllustration from '../views/illustration';
import MocksQuestion from '../views/question';
import MocksDetails from '../views/details';
import MocksTestVideo from '../views/test-video';
import MocksSpeakQuestion from '../views/speak-question';
import MockNotFound from '../views/404';
import MocksResult from '../views/result';

Vue.use(Router);

const router = new Router({
  routes: [
    {
      path: '/index/:paperId/:paperType/:courseId',
      name: 'home',
      component: Home
    },
    {
      path: '/test-video/:paperId/:courseId',
      name: 'MocksTestVideo',
      component: MocksTestVideo
    },
    {
      path: '/start/:paperId/:courseId',
      name: 'MocksStart',
      component: MocksStart
    },
    {
      path: '/illustration/:paperId/:courseId/:currentPart',
      name: 'MocksIllustration',
      component: MocksIllustration
    },
    {
      path: '/question/:paperId/:courseId/:currentPart',
      name: 'MocksQuestion',
      component: MocksQuestion
    },
    {
      path: '/speak/:paperId/:courseId/:currentPart/:questionNum',
      name: 'MocksSpeakQuestion',
      component: MocksSpeakQuestion
    },
    {
      path: '/details/:paperId/',
      name: 'MocksDetails',
      component: MocksDetails
    },
    {
      path: '/result/:paperId/:status/:score',
      name: 'result',
      component: MocksResult
    },
    {
      path: '/*',
      name: '404',
      component: MockNotFound
    }
  ]
});


export default router;
